using System;
using System.Collections;
using System.Collections.Generic;

using QLKS.DataLayer.Base;

namespace QLKS.DataLayer.BusinessObjects
{
    public partial class TinhTrang : BusinessBase<int>
    {
        #region Declarations

		private string _tenTinhTrang = String.Empty;
		private string _moTa = null;
		
		
		private IList<CTPhieuThuePhong> _cTPhieuThuePhongs = new List<CTPhieuThuePhong>();
		private IList<HoaDon> _hoaDons = new List<HoaDon>();
		
		#endregion

        #region Constructors

        public TinhTrang() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_tenTinhTrang);
			sb.Append(_moTa);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string TenTinhTrang
        {
            get { return _tenTinhTrang; }
			set
			{
				OnTenTinhTrangChanging();
				_tenTinhTrang = value;
				OnTenTinhTrangChanged();
			}
        }
		partial void OnTenTinhTrangChanging();
		partial void OnTenTinhTrangChanged();
		
		public virtual string MoTa
        {
            get { return _moTa; }
			set
			{
				OnMoTaChanging();
				_moTa = value;
				OnMoTaChanged();
			}
        }
		partial void OnMoTaChanging();
		partial void OnMoTaChanged();
		
		public virtual IList<CTPhieuThuePhong> CTPhieuThuePhongs
        {
            get { return _cTPhieuThuePhongs; }
            set
			{
				OnCTPhieuThuePhongsChanging();
				_cTPhieuThuePhongs = value;
				OnCTPhieuThuePhongsChanged();
			}
        }
		partial void OnCTPhieuThuePhongsChanging();
		partial void OnCTPhieuThuePhongsChanged();
		
		public virtual IList<HoaDon> HoaDons
        {
            get { return _hoaDons; }
            set
			{
				OnHoaDonsChanging();
				_hoaDons = value;
				OnHoaDonsChanged();
			}
        }
		partial void OnHoaDonsChanging();
		partial void OnHoaDonsChanged();
		
        #endregion
    }
}
